home *** CD-ROM | disk | FTP | other *** search
-
-
-
- VVVVLLLLAAAADDDDDDDDCCCCAAAALLLLLLLLBBBBAAAACCCCKKKK((((3333ddddmmmm)))) VVVVLLLLAAAADDDDDDDDCCCCAAAALLLLLLLLBBBBAAAACCCCKKKK((((3333ddddmmmm))))
-
-
-
- NNNNAAAAMMMMEEEE
- vlRegisterHandler, vlRemoveHandler, vlAddCallback, vlRemoveCallback,
- vlRemoveAllCallbacks, vlCallCallbacks, vlMainLoop - IRIS VL event
- handling routines
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- ####iiiinnnncccclllluuuuddddeeee <<<<ddddmmmmeeeeddddiiiiaaaa////vvvvllll....hhhh>>>>
-
- iiiinnnntttt vvvvllllRRRReeeeggggiiiisssstttteeeerrrrHHHHaaaannnnddddlllleeeerrrr((((VVVVLLLLSSSSeeeerrrrvvvveeeerrrr ssssvvvvrrrr,,,, iiiinnnntttt ffffdddd,,,, VVVVLLLLEEEEvvvveeeennnnttttHHHHaaaannnnddddlllleeeerrrr hhhhaaaannnnddddlllleeeerrrr,,,,
- VVVVLLLLPPPPeeeennnnddddiiiinnnnggggFFFFuuuunnnncccc ppppeeeennnnddddiiiinnnnggggFFFFuuuunnnncccc,,,, vvvvooooiiiidddd ****cccclllliiiieeeennnnttttDDDDaaaattttaaaa))));;;;
- iiiinnnntttt vvvvllllRRRReeeemmmmoooovvvveeeeHHHHaaaannnnddddlllleeeerrrr((((VVVVLLLLSSSSeeeerrrrvvvveeeerrrr ssssvvvvrrrr,,,, iiiinnnntttt ffffdddd))));;;;
- iiiinnnntttt vvvvllllAAAAddddddddCCCCaaaallllllllbbbbaaaacccckkkk((((VVVVLLLLSSSSeeeerrrrvvvveeeerrrr ssssvvvvrrrr,,,, VVVVLLLLPPPPaaaatttthhhh ppppaaaatttthhhh,,,, VVVVLLLLEEEEvvvveeeennnnttttMMMMaaaasssskkkk eeeevvvveeeennnnttttssss,,,,
- VVVVLLLLCCCCaaaallllllllbbbbaaaacccckkkkPPPPrrrroooocccc ccccaaaallllllllbbbbaaaacccckkkk,,,, vvvvooooiiiidddd ****cccclllliiiieeeennnnttttDDDDaaaattttaaaa))));;;;
- iiiinnnntttt vvvvllllRRRReeeemmmmoooovvvveeeeCCCCaaaallllllllbbbbaaaacccckkkk((((VVVVLLLLSSSSeeeerrrrvvvveeeerrrr ssssvvvvrrrr,,,, VVVVLLLLPPPPaaaatttthhhh ppppaaaatttthhhh,,,, VVVVLLLLEEEEvvvveeeennnnttttMMMMaaaasssskkkk eeeevvvveeeennnnttttssss,,,,
- VVVVLLLLCCCCaaaallllllllbbbbaaaacccckkkkPPPPrrrroooocccc ccccaaaallllllllbbbbaaaacccckkkk,,,, vvvvooooiiiidddd ****cccclllliiiieeeennnnttttDDDDaaaattttaaaa))));;;;
- iiiinnnntttt vvvvllllRRRReeeemmmmoooovvvveeeeAAAAllllllllCCCCaaaallllllllbbbbaaaacccckkkkssss((((VVVVLLLLSSSSeeeerrrrvvvveeeerrrr ssssvvvvrrrr,,,, VVVVLLLLPPPPaaaatttthhhh ppppaaaatttthhhh,,,, VVVVLLLLEEEEvvvveeeennnnttttMMMMaaaasssskkkk eeeevvvveeeennnnttttssss))));;;;
- iiiinnnntttt vvvvllllCCCCaaaallllllllCCCCaaaallllllllbbbbaaaacccckkkkssss((((VVVVLLLLSSSSeeeerrrrvvvveeeerrrr ssssvvvvrrrr,,,, VVVVLLLLEEEEvvvveeeennnntttt ****eeeevvvv))));;;;
- vvvvooooiiiidddd vvvvllllMMMMaaaaiiiinnnnLLLLoooooooopppp(((())));;;;
-
- PPPPAAAARRRRAAAAMMMMEEEETTTTEEEERRRRSSSS
- _s_v_r Specifies the video server.
-
- _f_d a file descriptor that can be used with _s_e_l_e_c_t(2).
-
- _h_a_n_d_l_e_r Pointer to a function to handle data valid on the file
- descriptor.
-
- _p_e_n_d_i_n_g_F_u_n_c Pointer to a function that will tell whether there is data
- that has been read from the file descriptor, but not passed
- to a handler function. If this is null, no data will be
- checked for before entering _s_e_l_e_c_t(2).
-
- _c_l_i_e_n_t_D_a_t_a Data for the use of the client callback.
-
- _p_a_t_h The path for which a callback will be invoked, of VL_ANY
- for all paths.
-
- _e_v_e_n_t_s Event mask for which add or remove a handler.
-
- _c_a_l_l_b_a_c_k The callback function to be invoked or removed.
-
- _e_v A pointer to an event for which you wish event callbacks to
- be invoked.
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- vvvvllllRRRReeeeggggiiiisssstttteeeerrrrHHHHaaaannnnddddlllleeeerrrr is intended to provide a mechanism for receiving events
- from servers other than the VL, e.g., the X server or the GL. After
- vvvvllllMMMMaaaaiiiinnnnLLLLoooooooopppp is given control, the handler function will be called with the
- file descriptor and the client data specified when sssseeeelllleeeecccctttt(2) returns the
- fd as readable.
-
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- VVVVLLLLAAAADDDDDDDDCCCCAAAALLLLLLLLBBBBAAAACCCCKKKK((((3333ddddmmmm)))) VVVVLLLLAAAADDDDDDDDCCCCAAAALLLLLLLLBBBBAAAACCCCKKKK((((3333ddddmmmm))))
-
-
-
- This function should not be called with the VL file descriptor.
-
- vvvvllllRRRReeeemmmmoooovvvveeeeHHHHaaaannnnddddlllleeeerrrr removes the corresponding handler from the file
- descriptor. There can only be one handler per file descriptor at a time.
- Registering a handler on a file descriptor that already has a handler
- registered will remove the previous handler. After vvvvllllRRRReeeemmmmoooovvvveeeeHHHHaaaannnnddddlllleeeerrrr is
- called, vvvvllllMMMMaaaaiiiinnnnLLLLoooooooopppp will no longer wait on the file descriptor using
- sssseeeelllleeeecccctttt ((((2222))))
-
- vvvvllllAAAAddddddddCCCCaaaallllllllbbbbaaaacccckkkk will add a callback with the specified client data to the
- event mask given. If the callback and the client data match a previous
- callback added on the same server and path, the event masks will be or'ed
- together and the callback will only be called once. If any of the
- parameters differs, all callbacks for a given event will be called, but
- not in a guaranteed sequence. If VL_ANY is given as the path, the
- callback will be called when the events occur on any path. These
- callbacks will be called only if control is given to vvvvllllMMMMaaaaiiiinnnnLLLLoooooooopppp,,,, or
- vvvvllllCCCCaaaallllllllCCCCaaaallllllllbbbbaaaacccckkkkssss is called.
-
- vvvvllllRRRReeeemmmmoooovvvveeeeCCCCaaaallllllllbbbbaaaacccckkkk will remove the given callback from the events in the
- event mask. A callback is only removed if the server, path, and client
- data match exactly. Note that VL_ANY given as a path, will only remove a
- callback that has been registered on VL_ANY.
-
- vvvvllllRRRReeeemmmmoooovvvveeeeAAAAllllllllCCCCaaaallllllllbbbbaaaacccckkkkssss will remove all callbacks on a given path for a set
- of events. Note again that VL_ANY will not match any path.
-
- vvvvllllCCCCaaaallllllllCCCCaaaallllllllbbbbaaaacccckkkkssss will call all the callbacks registered for the server and
- event. The path field in the event must be set properly. This function
- will aid in creating your own main loop, or using one other than
- vlMainLoop.
-
- vvvvllllMMMMaaaaiiiinnnnLLLLoooooooopppp is a select loop that will infinitely loop waiting for events
- to come in on all of the file descriptors registered. If the sssseeeelllleeeecccctttt(2)
- call is interrupted, it will try to re-enter select and continue. This
- function will not return.
-
- RRRREEEETTTTUUUURRRRNNNN VVVVAAAALLLLUUUUEEEE
- If successful, those routines that return a value will return zero. A
- value of -1 indicates an error.
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- vlSelectEvents(3dm), vlNextEvent(3dm), vlConnectionNumber(3dm)
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-